Maximum Product Of The Length Of Two Palindromic Subsequences - Bitmasking Tutorial - Python